package com.haiyou.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author chenzeke
 * 公共常量，私有常量不能放这
 */
public class Constant {
    /**
     * 查询不到数据状态码
     */
    public static final Integer NOMSG = 1000;
    /**
     * 删除数据失败状态码
     */
    public static final Integer DELETE_FAIL = 1001;
    public static final Integer SYS_ERROR = 1002;
    public static final Integer DATABASE_SAVE_FAILURE = 2002;
    public static final Integer ACCOUNT_FROZEN = 2001;
    public static final Integer LOGIN_ERROR = 1001;
    public static final Integer LOGIN_FAILURE = 1110;

    /**
     * 用户已存在
     */
    public static final Integer USER_EXIT = 1111;
    public static final String ASC = "asc";

    /**
     * 默认状态
     */
    @Getter
    @AllArgsConstructor
    public enum DefaultStatus {
        NO("0", "否"),
        YES("1", "是");

        private String type;
        private String remark;

    }
}
